extrn errtbl:dword
extrn code_addr:dword
extrn data_sel:dword
extrn dos_ptr:dword
extrn psp_ptr:dword
extrn env_ptr:dword
extrn gfx_ptr:dword
extrn text_ptr:dword
extrn ram_sel:dword
extrn ram_ptr:dword
extrn rom_ptr:dword
extrn vrom_ptr:dword
extrn chr_ptr:dword
extrn dmabuff:dword
extrn argc:dword
extrn argv:dword
extrn reg_struc:dword
extrn _eax:dword
extrn _ebx:dword
extrn _ecx:dword
extrn _edx:dword
extrn _edi:dword
extrn _esi:dword
extrn _ebp:dword
extrn _ds:word
extrn _es:word
extrn _fs:word
extrn _gs:word
extrn _flags:word
extrn read_tbl:dword
extrn write_tbl:dword
extrn mapperinit:dword
extrn palmap:dword
extrn nes:byte
extrn castlevania:byte
extrn excitebike:byte
extrn mario:byte
extrn goonies:byte
extrn iceclimber:byte
extrn gradius:byte
extrn hogalley:byte
